//
//  AccountTicketListCell.m
//  ImGuider
//
//  Created by 李陆涛 on 2018/1/4.
//  Copyright © 2018年 imguider. All rights reserved.
//

#import "AccountTicketListCell.h"

@interface AccountTicketListCell ()
@property (weak, nonatomic) IBOutlet UIImageView *scenicImageView;
@property (weak, nonatomic) IBOutlet UILabel *scenicNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UILabel *countLabel;
@property (weak, nonatomic) IBOutlet UILabel *usingNameLabel;

@end

@implementation AccountTicketListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.scenicNameLabel.textColor = kSubitleColor;
    self.usingNameLabel.textColor = kContentColor;
    self.dateLabel.textColor = kThemeColor;
    self.countLabel.textColor = kContentColor;
    self.countLabel.font = Font(14);
}

- (void)configDataWith:(UploadTicketOrderModel *)model {
    
    [self.scenicImageView setImageURL:[NSURL URLWithString:model.pictureArray.firstObject] placeholderImage:kPlaceholderSqu];
    
    self.scenicNameLabel.text = model.subject;
    self.countLabel.text = [NSString stringWithFormat:@"x%@",model.size];
    
    if (model.visitdate.length > 0) {
        self.dateLabel.text = model.visitdate;
    }else{
        self.dateLabel.text=@"";
    }
    
    self.usingNameLabel.text =MYLocalizedString(@"TICKET_USE_DATE", nil);
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
